From: Jan Beulich Date: Fri, 7 Dec 2012 12:45:57 +0000 (+0100) Subject: x86/HVM: add missing assert to stdvga's mmio_move() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7541 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=3e7fcd51276a6df669f1338947157d7408268b91;p=xen.git x86/HVM: add missing assert to stdvga's mmio_move() ... to match the IOREQ_READ path. Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/stdvga.c b/xen/arch/x86/hvm/stdvga.c index 632b214eb6..331fca0ff4 100644 --- a/xen/arch/x86/hvm/stdvga.c +++ b/xen/arch/x86/hvm/stdvga.c @@ -519,6 +519,7 @@ static int mmio_move(struct hvm_hw_stdvga *s, ioreq_t *p) put_page(dp); return 0; } + ASSERT(!dp); tmp = stdvga_mem_read(data, p->size); } stdvga_mem_write(addr, tmp, p->size);